package org.gcu.filestorage.serive;

import org.gcu.filestorage.pojo.ApplyRecord;
import org.gcu.filestorage.pojo.SpaceStatus;

import java.util.List;

public interface ApplyInfoService {

    List<ApplyRecord> queryApplyRecord(String account);

    SpaceStatus querySpaceInfo(String account);

    boolean insertNewApplyRecord(String account, int applyType, int applyStatus, long applyVolume, String applyReason, long applyTime);

    boolean updateApplyRecord(int id, int applyStatus, String approvalDesc);

    List<ApplyRecord> queryApplyRecordByStatus(int applyStatus);

    boolean insertNewSpaceStatus(String account, long totalVolume, long usedVolume, long remainVolume);

    boolean updateSpaceStatus(String account, long totalVolume, long usedVolume, long remainVolume);
}
